/**
 * Copyright &copy; 2015-2020 <a href="http://www.jeeplus.org/">JeePlus</a> All rights reserved.
 */
package com.jeeplus.modules.teamrecord.service;

import java.util.List;

import com.jeeplus.modules.traderecord.entity.TradeRecord;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.jeeplus.core.persistence.Page;
import com.jeeplus.core.service.CrudService;
import com.jeeplus.modules.teamrecord.entity.TeamRecord;
import com.jeeplus.modules.teamrecord.mapper.TeamRecordMapper;

/**
 * 管理收益记录Service
 * @author freedom
 * @version 2020-07-20
 */
@Service
@Transactional(readOnly = true)
public class TeamRecordService extends CrudService<TeamRecordMapper, TeamRecord> {

	public TeamRecord get(String id) {
		return super.get(id);
	}
	
	public List<TeamRecord> findList(TeamRecord teamRecord) {
		return super.findList(teamRecord);
	}
	
	public Page<TeamRecord> findPage(Page<TeamRecord> page, TeamRecord teamRecord) {
		return super.findPage(page, teamRecord);
	}
	
	@Transactional(readOnly = false)
	public void save(TeamRecord teamRecord) {
		super.save(teamRecord);
	}
	
	@Transactional(readOnly = false)
	public void delete(TeamRecord teamRecord) {
		super.delete(teamRecord);
	}

	public List<TeamRecord> findLastWeekList(TeamRecord teamRecord) {
		return mapper.findLastWeekList(teamRecord);
	}

	@Transactional(readOnly = false)
	public void del(String id) {
		mapper.del(id);
	}

}